import React, { PureComponent } from 'react'
import { connect } from 'react-redux'
import ListItem from './ListItem/ListItem'
import recordAction from "../../../../redux/action/recordAction";

class List extends PureComponent {
  recordDes = (el) => {
    this.props.recordAction(el)
  }
  render() {
    let { list } = this.props
    return (
      <>
        <div className="reying">
          <p className="mzi3">最佳热映</p>
          
             <ListItem list={list} recordDes={this.recordDes} />
          
          <div style={{'height':'50px'}}></div>
        </div>
      </>
    )
  }
}
export default connect(
  state => ({}),
  {
    recordAction
  }
)(List)